<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of User
 *
 * @author Binh
 */
class User {
    private $id;
    private $name;
    private $pass;
    private $email;
    private $admin;

    public function __construct($id, $name, $pass, $email, $admin) {
        $this->id = $id;
        $this->name = $name;
        $this->pass = $pass;
        $this->email = $email;
        $this->admin = $admin;
    }
    
    public function __destruct(){
        
    }
    /**
     * @return the id
     */
    public function getId() {
        return $this->id;
    }

    /**
     * @param id the id to set
     */
    public function setId($id) {
        $this->id = $id;
    }

    /**
     * @return the name
     */
    public function getName() {
        return $this->name;
    }

    /**
     * @param name the name to set
     */
    public function setName($name) {
        $this->name = $name;
    }
    
    public function getPass() {
        return $this->pass;
    }
    
    public function setPass($pass) {
        $this->pass = $pass;
    }
    
    public function getEmail() {
        return $this->email;
    }
    
    public function setEmail($email) {
        $this->img = $email;
    }
    
    public function isAdmin() {
        return $this->admin;
    }
    
    public function setAdmin($admin) {
        $this->admin = $admin;
    }
}

?>
